SOCKETS.ACCEPT Function

The SOCKETS object is deprecated and may be removed in a future release. Use INET::Socket instead.

Syntax

as P = Accept([C flags[, N Timeout]])

Arguments

flags

Character

Timeout

Optional. The time-out period in milliseconds.

Description

Accept an open sockets input. Returns a new accepted socket. flags - 'B' = blocking .

Discussion

The .ACCEPT() method creates a Server-mode socket from an Listener-mode socket. Like SOCKETS.OPEN(), this is a blocking call, which means that the system will be unresponsive until either the socket is successfully opened or AcceptTimeout milliseconds have elapsed.

See Also